Skip to content

Conversation

@svanoort
Copy link
Member

@svanoort svanoort commented Apr 5, 2018

  • Switch back to using native file copier utility so it better handles Symlinks and missing files, i.e. tmpFiles that are created by atomic operations and may be deleted while the copy operation is running
  • Added logging for abrupt shutdown processes so you can see what happens while snapshot of JENKINS_HOME is being taken... and what happen after it (activity that can be ignored).
  • Swallows FileNotFoundException

@svanoort svanoort requested review from batmat, jglick and rsandell April 6, 2018 13:20
Copy link
Member

@abayer abayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure? Nothing jumps out at me as a problem, and given how much testing you've been doing, I'm pretty confident you'd've found any gaping holes in this, so, yeah, +1. =)

@batmat
Copy link
Member

batmat commented Apr 6, 2018

As there are no tests here, do you have at least an example somewhere, ideally CI, where you used this successfully?

@svanoort
Copy link
Member Author

svanoort commented Apr 6, 2018

@batmat Yeah it's used heavily in workflow-cps -- I'm using a SNAPSHOT dep here -- jenkinsci/workflow-cps-plugin#216

Most of the issues here couldn't really be tested for because they only crop up in the 'fuzzing' tests which are essentially hammering on the persistence to find race conditions / timing or order of operations issues where durability guarantees break.

@svanoort svanoort merged commit 2df516d into jenkinsci:master Apr 6, 2018
@svanoort svanoort deleted the dirty-restart-enhancements branch April 6, 2018 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants